package com.apes.enquiry.brand.repository;

import com.apes.framework.query.ApesDao;
import com.apes.framework.util.MapUtil;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类描述：
 *
 * @ClassName BrandDao
 * @Description 描述
 * @Author wushilong
 * @Date 2023/5/11 16:28
 * @Version 1.0
 */
@Component
public class BrandDao extends ApesDao {

    public Map findSubQuality(String subdivideBrandId){
        String sql = "SELECT * FROM MAS_XFPZ WHERE XFPZID = :subdivideBrandId";
        List list = find(sql, MapUtil.mapper("subdivideBrandId", subdivideBrandId));
        if (list.isEmpty()) return null;
        return (Map) list.get(0);
    }
}
